
# Copyright 2009-2010 Joshua Roesslein
# See LICENSE for details.

"""
weibo API library
"""
__version__ = '1.5'
__author__ = 'Joshua Roesslein'
__license__ = 'MIT'

from ChineKingBlog.weibopy.models import Status, User, DirectMessage, Friendship, SavedSearch, SearchResult, ModelFactory, IDSModel
from ChineKingBlog.weibopy.error import WeibopError
from ChineKingBlog.weibopy.api import API
from ChineKingBlog.weibopy.cache import Cache, MemoryCache, FileCache
from ChineKingBlog.weibopy.auth import BasicAuthHandler, OAuthHandler
from ChineKingBlog.weibopy.streaming import Stream, StreamListener
from ChineKingBlog.weibopy.cursor import Cursor

# Global, unauthenticated instance of API
api = API()

def debug(enable=True, level=1):

    import httplib
    httplib.HTTPConnection.debuglevel = level

